package com.yuyou.fn.tradingservice.service;

import com.yuyou.fn.tradingservice.entity.ServiceImage;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.tradingservice.entity.ServiceProduct;
import com.yuyou.fn.tradingservice.vo.ServiceProductVo;

import java.util.List;

/**
 *
 * ServiceImage 表数据服务层接口
 *
 */
public interface IServiceImageService extends ISuperService<ServiceImage,Long> {


    Long saveOrUpdateImage(ServiceImage image);

    void insertUseId(Long imageId,Integer type,Long id);

    List<ServiceImage> findImageByUseId(Long id);

    ServiceImage findFirstImage(Long productId);

    void generateProductImages(ServiceProduct serviceProduct, String productImages);

    String[] findUrlArrayByProductId(Long productId);
}